class CreateEmployees < ActiveRecord::Migration
  def self.up
    create_table :employees do |t|
      t.string :name, :null => false
      t.string :surname, :null => false
      t.string :address, :null => false
	  t.string :login, :null => false
      t.string :password, :null => false

      t.integer :warehouse_id, :null => false
      
      t.timestamps
    end
  end

  def self.down
    drop_table :employees
  end
end
